package com.pptv.schedule.strategy;

import com.pptv.ads.core.strategy.NodeSelectStrategy;
import com.pptv.ads.core.strategy.NodeSelectStrategy.SelectStrategy;

public class StrategyFactory {
	
	public static NodeSelectStrategy getStrategy(SelectStrategy strategy){
		if(strategy == null || SelectStrategy.Random == strategy ){
			return new RandomNodeSelectStrategy();
		}else if(SelectStrategy.HASH == strategy ){
			return new HashNodeSelectStrategy();
		}
		
		return null;
	}
	
}
